package com.uzai.common.param;

import java.util.Map;

/**
 * 分页参数
 *
 * @author mingyang.chen create in 2023/2/17 11:35
 */
public class PageParam {

    /**
     * 当前页
     */
    private Integer pageNum = 1;

    /**
     * 每页记录数
     */
    private Integer pageSize = 10;

    /**
     * 排序
     * <p>
     * key=asc 或 desc
     * <p>
     * value=排序的字段
     */
    private Map<String, String> order;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Map<String, String> getOrder() {
        return order;
    }

    public void setOrder(Map<String, String> order) {
        this.order = order;
    }
}
